import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import qualification from '../views/qualification.vue'
import picture from '../views/picture.vue'
import aptitude from '../views/aptitude.vue'
import aptitudeEdit from '../views/aptitudeEdit.vue'
import report from '../views/report.vue'
import copyright from '../views/copyright.vue'

Vue.use(VueRouter)
   
const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  //资质
  {
    path: '/qualification',
    name: 'qualification',
    component: qualification
  },
  //资质图片
  {
    path: '/picture',
    name: 'picture',
    component: picture
  },
   //规则
   {
    path: '/aptitude',
    name: 'aptitude',
    component: aptitude
  },
  //规则详情
  {
    path: '/aptitudeEdit',
    name: 'aptitudeEdit',
    component: aptitudeEdit
  },
  //举报信息
  {
    path: '/report',
    name: 'report',
    component: report
  },
  //版权信息
  {
    path: '/copyright',
    name: 'copyright',
    component: copyright
  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
